function randomInt(minNum,maxNum) {
    switch(arguments.length){
        case 1:
            return Math.floor(Math.random()*minNum);
        case 2:
            return Math.floor(Math.random()*(maxNum-minNum+1))+minNum;
        default:
            return 0;
    } 
}

function randomFloat(minNum,maxNum) {
    switch(arguments.length){
        case 1:
            return Math.random()*minNum;
        case 2:
            return Math.random()*(maxNum-minNum)+minNum;
        default:
            return 0;
    } 
}

function randomBool() {
    return Math.random()<0.5;
}

module.exports.randomInt = randomInt;
module.exports.randomFloat = randomFloat;
module.exports.randomBool = randomBool;